package com.zdp.applet.config;


import lombok.Getter;
import lombok.Setter;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Configuration;

/**
 * @author sesshomaru
 * @date 2021/7/10 0:12
 */
@Configuration
@ConfigurationProperties(prefix = "applet")
public class AppProperties {

    @Getter
    @Setter
    private Rabbit rabbit = new Rabbit();

    @Getter
    @Setter
    public static class Rabbit {
        private String host = "127.0.0.1";
        private Integer port = 5672;
        private String password = "guest";
        private String username = "guest";
    }
}
